-- GENERATED SPELL FOR [Inquisitor Caleras] --


function spell0_25720(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(32192,pUnit)
pUnit:RegisterEvent('Sorts_25720', 5327, 1)
end

function spell1_25720(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(15043,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25720', 7000, 1)
end

function Sorts_25720(pUnit, Event)
local choix_sorts_25720 = math.random(0, 1)
if choix_sorts_25720 == 0 then
pUnit:RegisterEvent('spell0_25720', 1, 1)
end
if choix_sorts_25720 == 1 then
pUnit:RegisterEvent('spell1_25720', 1, 1)
end
end

function mob25720_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25720', math.random(1500, 3000), 1)
end

function mob25720_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25720_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25720_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25720, 1, 'mob25720_Action')
RegisterUnitEvent(25720, 2, 'mob25720_Leave')
RegisterUnitEvent(25720, 3, 'mob25720_Kill')
RegisterUnitEvent(25720, 4, 'mob25720_Die')
